require('dotenv').config();

const config = {
  bark: {
    baseUrl: process.env.BARK_BASE_URL || 'https://api.day.app',
    deviceKeys: (process.env.BARK_DEVICE_KEYS || '').split(',').map(s => s.trim()).filter(Boolean),
    group: process.env.BARK_GROUP || undefined,
    sound: process.env.BARK_SOUND || undefined,
    icon: process.env.BARK_ICON || undefined,
    archive: process.env.BARK_ARCHIVE === 'true'
  },
  email: {
    host: process.env.SMTP_HOST || '',
    port: process.env.SMTP_PORT ? parseInt(process.env.SMTP_PORT, 10) : 587,
    secure: process.env.SMTP_SECURE === 'true',
    user: process.env.SMTP_USER || '',
    pass: process.env.SMTP_PASS || '',
    from: process.env.EMAIL_FROM || ''
  }
};

module.exports = { config };


